home *** CD-ROM | disk | FTP | other *** search
Unknown | 1999-11-30 | 10.8 KB |
open in:
MacOS 8.1
|
Win98
|
DOS
view JSON data
|
view as text
This file was not able to be converted.
This format is not currently supported by dexvert.
Confidence | Program | Detection | Match Type | Support
|
---|
100%
| file
| data
| default
|
|
hex view+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 00 00 00 00 00 00 00 | 69 ac 01 2f 2f 3d 3d 3d |........|i..//===|
|00000010| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|00000020| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|00000030| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|00000040| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|00000050| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 0d 0a 2f 2f 20 47 |========|==..// G|
|00000060| 75 69 64 65 64 57 61 72 | 53 68 65 6c 6c 2e 0d 0a |uidedWar|Shell...|
|00000070| 2f 2f 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |//======|========|
|00000080| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|00000090| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|000000a0| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|000000b0| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 0d |========|=======.|
|000000c0| 0a 63 6c 61 73 73 20 47 | 75 69 64 65 64 57 61 72 |.class G|uidedWar|
|000000d0| 53 68 65 6c 6c 20 65 78 | 74 65 6e 64 73 20 57 61 |Shell ex|tends Wa|
|000000e0| 72 53 68 65 6c 6c 3b 0d | 0a 0d 0a 76 61 72 20 50 |rShell;.|...var P|
|000000f0| 61 77 6e 20 47 75 69 64 | 65 72 3b 0d 0a 76 61 72 |awn Guid|er;..var|
|00000100| 20 72 6f 74 61 74 6f 72 | 20 4f 6c 64 47 75 69 64 | rotator| OldGuid|
|00000110| 65 72 52 6f 74 61 74 69 | 6f 6e 2c 20 47 75 69 64 |erRotati|on, Guid|
|00000120| 65 64 52 6f 74 61 74 69 | 6f 6e 3b 0d 0a 76 61 72 |edRotati|on;..var|
|00000130| 20 66 6c 6f 61 74 20 43 | 75 72 72 65 6e 74 54 69 | float C|urrentTi|
|00000140| 6d 65 53 74 61 6d 70 2c | 20 4c 61 73 74 55 70 64 |meStamp,| LastUpd|
|00000150| 61 74 65 54 69 6d 65 2c | 43 6c 69 65 6e 74 42 75 |ateTime,|ClientBu|
|00000160| 66 66 65 72 2c 53 65 72 | 76 65 72 55 70 64 61 74 |ffer,Ser|verUpdat|
|00000170| 65 3b 0d 0a 76 61 72 20 | 62 6f 6f 6c 20 62 55 70 |e;..var |bool bUp|
|00000180| 64 61 74 65 50 6f 73 69 | 74 69 6f 6e 3b 0d 0a 76 |datePosi|tion;..v|
|00000190| 61 72 20 62 6f 6f 6c 20 | 62 44 65 73 74 72 6f 79 |ar bool |bDestroy|
|000001a0| 65 64 3b 0d 0a 0d 0a 76 | 61 72 20 53 61 76 65 64 |ed;....v|ar Saved|
|000001b0| 4d 6f 76 65 20 53 61 76 | 65 64 4d 6f 76 65 73 3b |Move Sav|edMoves;|
|000001c0| 0d 0a 76 61 72 20 53 61 | 76 65 64 4d 6f 76 65 20 |..var Sa|vedMove |
|000001d0| 46 72 65 65 4d 6f 76 65 | 73 3b 0d 0a 0d 0a 76 61 |FreeMove|s;....va|
|000001e0| 72 20 76 65 63 74 6f 72 | 20 52 65 61 6c 4c 6f 63 |r vector| RealLoc|
|000001f0| 61 74 69 6f 6e 2c 20 52 | 65 61 6c 56 65 6c 6f 63 |ation, R|ealVeloc|
|00000200| 69 74 79 3b 0d 0a 0d 0a | 72 65 70 6c 69 63 61 74 |ity;....|replicat|
|00000210| 69 6f 6e 0d 0a 7b 0d 0a | 09 2f 2f 20 54 68 69 6e |ion..{..|.// Thin|
|00000220| 67 73 20 74 68 65 20 73 | 65 72 76 65 72 20 73 68 |gs the s|erver sh|
|00000230| 6f 75 6c 64 20 73 65 6e | 64 20 74 6f 20 74 68 65 |ould sen|d to the|
|00000240| 20 63 6c 69 65 6e 74 2e | 0d 0a 09 75 6e 72 65 6c | client.|...unrel|
|00000250| 69 61 62 6c 65 20 69 66 | 28 20 52 6f 6c 65 3d 3d |iable if|( Role==|
|00000260| 52 4f 4c 45 5f 41 75 74 | 68 6f 72 69 74 79 20 29 |ROLE_Aut|hority )|
|00000270| 0d 0a 09 09 43 6c 69 65 | 6e 74 41 64 6a 75 73 74 |....Clie|ntAdjust|
|00000280| 50 6f 73 69 74 69 6f 6e | 2c 20 62 44 65 73 74 72 |Position|, bDestr|
|00000290| 6f 79 65 64 3b 0d 0a 09 | 75 6e 72 65 6c 69 61 62 |oyed;...|unreliab|
|000002a0| 6c 65 20 69 66 20 28 20 | 52 6f 6c 65 3d 3d 52 4f |le if ( |Role==RO|
|000002b0| 4c 45 5f 41 75 74 68 6f | 72 69 74 79 20 26 26 20 |LE_Autho|rity && |
|000002c0| 62 4e 65 74 4f 77 6e 65 | 72 20 26 26 20 62 4e 65 |bNetOwne|r && bNe|
|000002d0| 74 49 6e 69 74 69 61 6c | 20 29 0d 0a 09 09 47 75 |tInitial| )....Gu|
|000002e0| 69 64 65 64 52 6f 74 61 | 74 69 6f 6e 2c 20 4f 6c |idedRota|tion, Ol|
|000002f0| 64 47 75 69 64 65 72 52 | 6f 74 61 74 69 6f 6e 3b |dGuiderR|otation;|
|00000300| 0d 0a 09 75 6e 72 65 6c | 69 61 62 6c 65 20 69 66 |...unrel|iable if|
|00000310| 28 20 52 6f 6c 65 3d 3d | 52 4f 4c 45 5f 41 75 74 |( Role==|ROLE_Aut|
|00000320| 68 6f 72 69 74 79 20 26 | 26 20 21 62 4e 65 74 4f |hority &|& !bNetO|
|00000330| 77 6e 65 72 20 29 0d 0a | 09 09 52 65 61 6c 4c 6f |wner )..|..RealLo|
|00000340| 63 61 74 69 6f 6e 2c 20 | 52 65 61 6c 56 65 6c 6f |cation, |RealVelo|
|00000350| 63 69 74 79 3b 0d 0a 09 | 75 6e 72 65 6c 69 61 62 |city;...|unreliab|
|00000360| 6c 65 20 69 66 28 20 52 | 6f 6c 65 3d 3d 52 4f 4c |le if( R|ole==ROL|
|00000370| 45 5f 41 75 74 6f 6e 6f | 6d 6f 75 73 50 72 6f 78 |E_Autono|mousProx|
|00000380| 79 20 29 0d 0a 09 09 53 | 65 72 76 65 72 4d 6f 76 |y )....S|erverMov|
|00000390| 65 3b 0d 0a 7d 0d 0a 0d | 0a 73 69 6d 75 6c 61 74 |e;..}...|.simulat|
|000003a0| 65 64 20 66 75 6e 63 74 | 69 6f 6e 20 54 69 6d 65 |ed funct|ion Time|
|000003b0| 72 28 29 0d 0a 7b 0d 0a | 09 6c 6f 63 61 6c 20 75 |r()..{..|.local u|
|000003c0| 74 5f 53 70 72 69 74 65 | 53 6d 6f 6b 65 50 75 66 |t_Sprite|SmokePuf|
|000003d0| 66 20 62 3b 0d 0a 09 6c | 6f 63 61 6c 20 66 6c 6f |f b;...l|ocal flo|
|000003e0| 61 74 20 53 6d 6f 6b 65 | 52 61 74 65 3b 0d 0a 0d |at Smoke|Rate;...|
|000003f0| 0a 09 69 66 20 28 20 28 | 52 6f 6c 65 20 3d 3d 20 |..if ( (|Role == |
|00000400| 52 4f 4c 45 5f 41 75 74 | 68 6f 72 69 74 79 29 20 |ROLE_Aut|hority) |
|00000410| 26 26 20 28 4c 65 76 65 | 6c 2e 54 69 6d 65 53 65 |&& (Leve|l.TimeSe|
|00000420| 63 6f 6e 64 73 20 2d 20 | 53 65 72 76 65 72 55 70 |conds - |ServerUp|
|00000430| 64 61 74 65 20 3e 20 34 | 29 20 29 0d 0a 09 7b 0d |date > 4|) )...{.|
|00000440| 0a 09 09 45 78 70 6c 6f | 64 65 28 4c 6f 63 61 74 |...Explo|de(Locat|
|00000450| 69 6f 6e 2c 56 65 63 74 | 28 30 2c 30 2c 31 29 29 |ion,Vect|(0,0,1))|
|00000460| 3b 0d 0a 09 09 72 65 74 | 75 72 6e 3b 0d 0a 09 7d |;....ret|urn;...}|
|00000470| 0d 0a 0d 0a 09 69 66 20 | 28 20 54 72 61 69 6c 20 |.....if |( Trail |
|00000480| 3d 3d 20 4e 6f 6e 65 20 | 29 0d 0a 09 09 54 72 61 |== None |)....Tra|
|00000490| 69 6c 20 3d 20 53 70 61 | 77 6e 28 63 6c 61 73 73 |il = Spa|wn(class|
|000004a0| 27 52 65 64 65 65 6d 65 | 72 54 72 61 69 6c 27 2c |'Redeeme|rTrail',|
|000004b0| 73 65 6c 66 29 3b 0d 0a | 0d 0a 09 43 61 6e 6e 6f |self);..|...Canno|
|000004c0| 6e 54 69 6d 65 72 20 2b | 3d 20 53 6d 6f 6b 65 52 |nTimer +|= SmokeR|
|000004d0| 61 74 65 3b 0d 0a 09 69 | 66 20 28 20 43 61 6e 6e |ate;...i|f ( Cann|
|000004e0| 6f 6e 54 69 6d 65 72 20 | 3e 20 30 2e 36 20 29 0d |onTimer |> 0.6 ).|
|000004f0| 0a 09 7b 0d 0a 09 09 57 | 61 72 6e 43 61 6e 6e 6f |..{....W|arnCanno|
|00000500| 6e 73 28 29 3b 0d 0a 09 | 09 43 61 6e 6e 6f 6e 54 |ns();...|.CannonT|
|00000510| 69 6d 65 72 20 2d 3d 20 | 30 2e 36 3b 0d 0a 09 7d |imer -= |0.6;...}|
|00000520| 0d 0a 0d 0a 09 69 66 20 | 28 20 52 65 67 69 6f 6e |.....if |( Region|
|00000530| 2e 5a 6f 6e 65 2e 62 57 | 61 74 65 72 5a 6f 6e 65 |.Zone.bW|aterZone|
|00000540| 20 7c 7c 20 28 4c 65 76 | 65 6c 2e 4e 65 74 4d 6f | || (Lev|el.NetMo|
|00000550| 64 65 20 3d 3d 20 4e 4d | 5f 44 65 64 69 63 61 74 |de == NM|_Dedicat|
|00000560| 65 64 53 65 72 76 65 72 | 29 20 29 0d 0a 09 7b 0d |edServer|) )...{.|
|00000570| 0a 09 09 53 65 74 54 69 | 6d 65 72 28 53 6d 6f 6b |...SetTi|mer(Smok|
|00000580| 65 52 61 74 65 2c 20 66 | 61 6c 73 65 29 3b 0d 0a |eRate, f|alse);..|
|00000590| 09 09 52 65 74 75 72 6e | 3b 0d 0a 09 7d 0d 0a 0d |..Return|;...}...|
|000005a0| 0a 09 69 66 20 28 20 4c | 65 76 65 6c 2e 62 48 69 |..if ( L|evel.bHi|
|000005b0| 67 68 44 65 74 61 69 6c | 4d 6f 64 65 20 29 0d 0a |ghDetail|Mode )..|
|000005c0| 09 7b 0d 0a 09 09 69 66 | 20 28 20 4c 65 76 65 6c |.{....if| ( Level|
|000005d0| 2e 62 44 72 6f 70 44 65 | 74 61 69 6c 20 29 0d 0a |.bDropDe|tail )..|
|000005e0| 09 09 09 53 6d 6f 6b 65 | 52 61 74 65 20 3d 20 30 |...Smoke|Rate = 0|
|000005f0| 2e 30 37 3b 0d 0a 09 09 | 65 6c 73 65 0d 0a 09 09 |.07;....|else....|
|00000600| 09 53 6d 6f 6b 65 52 61 | 74 65 20 3d 20 30 2e 30 |.SmokeRa|te = 0.0|
|00000610| 32 3b 20 0d 0a 09 7d 0d | 0a 09 65 6c 73 65 20 0d |2; ...}.|..else .|
|00000620| 0a 09 7b 0d 0a 09 09 53 | 6d 6f 6b 65 52 61 74 65 |..{....S|mokeRate|
|00000630| 20 3d 20 30 2e 31 35 3b | 0d 0a 09 7d 0d 0a 09 62 | = 0.15;|...}...b|
|00000640| 20 3d 20 53 70 61 77 6e | 28 63 6c 61 73 73 27 75 | = Spawn|(class'u|
|00000650| 74 5f 53 70 72 69 74 65 | 53 6d 6f 6b 65 50 75 66 |t_Sprite|SmokePuf|
|00000660| 66 27 29 3b 0d 0a 09 62 | 2e 52 65 6d 6f 74 65 52 |f');...b|.RemoteR|
|00000670| 6f 6c 65 20 3d 20 52 4f | 4c 45 5f 4e 6f 6e 65 3b |ole = RO|LE_None;|
|00000680| 0d 0a 09 53 65 74 54 69 | 6d 65 72 28 53 6d 6f 6b |...SetTi|mer(Smok|
|00000690| 65 52 61 74 65 2c 20 66 | 61 6c 73 65 29 3b 0d 0a |eRate, f|alse);..|
|000006a0| 7d 0d 0a 0d 0a 0d 0a 73 | 69 6d 75 6c 61 74 65 64 |}......s|imulated|
|000006b0| 20 66 75 6e 63 74 69 6f | 6e 20 44 65 73 74 72 6f | functio|n Destro|
|000006c0| 79 65 64 28 29 0d 0a 7b | 0d 0a 09 6c 6f 63 61 6c |yed()..{|...local|
|000006d0| 20 57 61 72 68 65 61 64 | 4c 61 75 6e 63 68 65 72 | Warhead|Launcher|
|000006e0| 20 57 3b 0d 0a 0d 0a 09 | 62 44 65 73 74 72 6f 79 | W;.....|bDestroy|
|000006f0| 65 64 20 3d 20 74 72 75 | 65 3b 0d 0a 09 69 66 20 |ed = tru|e;...if |
|00000700| 28 20 28 50 6c 61 79 65 | 72 50 61 77 6e 28 47 75 |( (Playe|rPawn(Gu|
|00000710| 69 64 65 72 29 20 21 3d | 20 4e 6f 6e 65 29 20 29 |ider) !=| None) )|
|00000720| 0d 0a 09 09 50 6c 61 79 | 65 72 50 61 77 6e 28 47 |....Play|erPawn(G|
|00000730| 75 69 64 65 72 29 2e 56 | 69 65 77 54 61 72 67 65 |uider).V|iewTarge|
|00000740| 74 20 3d 20 4e 6f 6e 65 | 3b 0d 0a 0d 0a 09 57 68 |t = None|;.....Wh|
|00000750| 69 6c 65 20 28 20 46 72 | 65 65 4d 6f 76 65 73 20 |ile ( Fr|eeMoves |
|00000760| 21 3d 20 4e 6f 6e 65 20 | 29 0d 0a 09 7b 0d 0a 09 |!= None |)...{...|
|00000770| 09 46 72 65 65 4d 6f 76 | 65 73 2e 44 65 73 74 72 |.FreeMov|es.Destr|
|00000780| 6f 79 28 29 3b 0d 0a 09 | 09 46 72 65 65 4d 6f 76 |oy();...|.FreeMov|
|00000790| 65 73 20 3d 20 46 72 65 | 65 4d 6f 76 65 73 2e 4e |es = Fre|eMoves.N|
|000007a0| 65 78 74 4d 6f 76 65 3b | 0d 0a 09 7d 0d 0a 0d 0a |extMove;|...}....|
|000007b0| 09 57 68 69 6c 65 20 28 | 20 53 61 76 65 64 4d 6f |.While (| SavedMo|
|000007c0| 76 65 73 20 21 3d 20 4e | 6f 6e 65 20 29 0d 0a 09 |ves != N|one )...|
|000007d0| 7b 0d 0a 09 09 53 61 76 | 65 64 4d 6f 76 65 73 2e |{....Sav|edMoves.|
|000007e0| 44 65 73 74 72 6f 79 28 | 29 3b 0d 0a 09 09 53 61 |Destroy(|);....Sa|
|000007f0| 76 65 64 4d 6f 76 65 73 | 20 3d 20 53 61 76 65 64 |vedMoves| = Saved|
|00000800| 4d 6f 76 65 73 2e 4e 65 | 78 74 4d 6f 76 65 3b 0d |Moves.Ne|xtMove;.|
|00000810| 0a 09 7d 0d 0a 0d 0a 09 | 69 66 20 28 20 28 47 75 |..}.....|if ( (Gu|
|00000820| 69 64 65 72 20 21 3d 20 | 4e 6f 6e 65 29 20 26 26 |ider != |None) &&|
|00000830| 20 28 4c 65 76 65 6c 2e | 4e 65 74 4d 6f 64 65 20 | (Level.|NetMode |
|00000840| 21 3d 20 4e 4d 5f 43 6c | 69 65 6e 74 29 20 29 0d |!= NM_Cl|ient) ).|
|00000850| 0a 09 7b 0d 0a 09 09 57 | 20 3d 20 57 61 72 68 65 |..{....W| = Warhe|
|00000860| 61 64 4c 61 75 6e 63 68 | 65 72 28 47 75 69 64 65 |adLaunch|er(Guide|
|00000870| 72 2e 46 69 6e 64 49 6e | 76 65 6e 74 6f 72 79 54 |r.FindIn|ventoryT|
|00000880| 79 70 65 28 63 6c 61 73 | 73 27 57 61 72 68 65 61 |ype(clas|s'Warhea|
|00000890| 64 4c 61 75 6e 63 68 65 | 72 27 29 29 3b 0d 0a 09 |dLaunche|r'));...|
|000008a0| 09 69 66 20 28 20 57 20 | 21 3d 20 4e 6f 6e 65 20 |.if ( W |!= None |
|000008b0| 29 0d 0a 09 09 7b 0d 0a | 09 09 09 57 2e 47 75 69 |)....{..|...W.Gui|
|000008c0| 64 65 64 53 68 65 6c 6c | 20 3d 20 4e 6f 6e 65 3b |dedShell| = None;|
|000008d0| 0d 0a 09 09 09 57 2e 47 | 6f 74 6f 53 74 61 74 65 |.....W.G|otoState|
|000008e0| 28 27 46 69 6e 69 73 68 | 69 6e 67 27 29 3b 0d 0a |('Finish|ing');..|
|000008f0| 09 09 7d 0d 0a 09 7d 0d | 0a 09 53 75 70 65 72 2e |..}...}.|..Super.|
|00000900| 44 65 73 74 72 6f 79 65 | 64 28 29 3b 0d 0a 7d 0d |Destroye|d();..}.|
|00000910| 0a 0d 0a 73 69 6d 75 6c | 61 74 65 64 20 66 75 6e |...simul|ated fun|
|00000920| 63 74 69 6f 6e 20 54 69 | 63 6b 28 66 6c 6f 61 74 |ction Ti|ck(float|
|00000930| 20 44 65 6c 74 61 54 69 | 6d 65 29 0d 0a 7b 0d 0a | DeltaTi|me)..{..|
|00000940| 09 6c 6f 63 61 6c 20 69 | 6e 74 20 44 65 6c 74 61 |.local i|nt Delta|
|00000950| 59 61 77 2c 20 44 65 6c | 74 61 50 69 74 63 68 3b |Yaw, Del|taPitch;|
|00000960| 0d 0a 09 6c 6f 63 61 6c | 20 69 6e 74 20 59 61 77 |...local| int Yaw|
|00000970| 44 69 66 66 2c 20 50 69 | 74 63 68 44 69 66 66 3b |Diff, Pi|tchDiff;|
|00000980| 0d 0a 09 6c 6f 63 61 6c | 20 53 61 76 65 64 4d 6f |...local| SavedMo|
|00000990| 76 65 20 4e 65 77 4d 6f | 76 65 3b 0d 0a 0d 0a 09 |ve NewMo|ve;.....|
|000009a0| 69 66 20 28 20 4c 65 76 | 65 6c 2e 4e 65 74 4d 6f |if ( Lev|el.NetMo|
|000009b0| 64 65 20 3d 3d 20 4e 4d | 5f 43 6c 69 65 6e 74 20 |de == NM|_Client |
|000009c0| 29 0d 0a 09 7b 0d 0a 09 | 09 69 66 20 28 20 28 50 |)...{...|.if ( (P|
|000009d0| 6c 61 79 65 72 50 61 77 | 6e 28 49 6e 73 74 69 67 |layerPaw|n(Instig|
|000009e0| 61 74 6f 72 29 20 21 3d | 20 4e 6f 6e 65 29 20 26 |ator) !=| None) &|
|000009f0| 26 20 28 56 69 65 77 50 | 6f 72 74 28 50 6c 61 79 |& (ViewP|ort(Play|
|00000a00| 65 72 50 61 77 6e 28 49 | 6e 73 74 69 67 61 74 6f |erPawn(I|nstigato|
|00000a10| 72 29 2e 50 6c 61 79 65 | 72 29 20 21 3d 20 4e 6f |r).Playe|r) != No|
|00000a20| 6e 65 29 20 29 0d 0a 09 | 09 7b 0d 0a 09 09 09 47 |ne) )...|.{.....G|
|00000a30| 75 69 64 65 72 20 3d 20 | 49 6e 73 74 69 67 61 74 |uider = |Instigat|
|00000a40| 6f 72 3b 0d 0a 09 09 09 | 69 66 20 28 20 62 44 65 |or;.....|if ( bDe|
|00000a50| 73 74 72 6f 79 65 64 20 | 7c 7c 20 28 49 6e 73 74 |stroyed ||| (Inst|
|00000a60| 69 67 61 74 6f 72 2e 68 | 65 61 6c 74 68 20 3c 20 |igator.h|ealth < |
|00000a70| 30 29 20 29 0d 0a 09 09 | 09 7b 0d 0a 09 09 09 09 |0) )....|.{......|
|00000a80| 50 6c 61 79 65 72 50 61 | 77 6e 28 49 6e 73 74 69 |PlayerPa|wn(Insti|
|00000a90| 67 61 74 6f 72 29 2e 56 | 69 65 77 54 61 72 67 65 |gator).V|iewTarge|
|00000aa0| 74 20 3d 20 4e 6f 6e 65 | 3b 0d 0a 09 09 09 09 44 |t = None|;......D|
|00000ab0| 65 73 74 72 6f 79 28 29 | 3b 0d 0a 09 09 09 09 69 |estroy()|;......i|
|00000ac0| 66 20 28 20 49 6e 73 74 | 69 67 61 74 6f 72 2e 57 |f ( Inst|igator.W|
|00000ad0| 65 61 70 6f 6e 2e 49 73 | 41 28 27 57 61 72 68 65 |eapon.Is|A('Warhe|
|00000ae0| 61 64 4c 61 75 6e 63 68 | 65 72 27 29 20 29 0d 0a |adLaunch|er') )..|
|00000af0| 09 09 09 09 09 57 61 72 | 68 65 61 64 4c 61 75 6e |.....War|headLaun|
|00000b00| 63 68 65 72 28 49 6e 73 | 74 69 67 61 74 6f 72 2e |cher(Ins|tigator.|
|00000b10| 57 65 61 70 6f 6e 29 2e | 62 47 75 69 64 69 6e 67 |Weapon).|bGuiding|
|00000b20| 20 3d 20 66 61 6c 73 65 | 3b 0d 0a 09 09 09 09 72 | = false|;......r|
|00000b30| 65 74 75 72 6e 3b 0d 0a | 09 09 09 7d 0d 0a 09 09 |eturn;..|...}....|
|00000b40| 09 50 6c 61 79 65 72 50 | 61 77 6e 28 49 6e 73 74 |.PlayerP|awn(Inst|
|00000b50| 69 67 61 74 6f 72 29 2e | 56 69 65 77 54 61 72 67 |igator).|ViewTarg|
|00000b60| 65 74 20 3d 20 73 65 6c | 66 3b 0d 0a 09 09 09 69 |et = sel|f;.....i|
|00000b70| 66 20 28 20 49 6e 73 74 | 69 67 61 74 6f 72 2e 57 |f ( Inst|igator.W|
|00000b80| 65 61 70 6f 6e 2e 49 73 | 41 28 27 57 61 72 68 65 |eapon.Is|A('Warhe|
|00000b90| 61 64 4c 61 75 6e 63 68 | 65 72 27 29 20 29 0d 0a |adLaunch|er') )..|
|00000ba0| 09 09 09 7b 0d 0a 09 09 | 09 09 57 61 72 68 65 61 |...{....|..Warhea|
|00000bb0| 64 4c 61 75 6e 63 68 65 | 72 28 49 6e 73 74 69 67 |dLaunche|r(Instig|
|00000bc0| 61 74 6f 72 2e 57 65 61 | 70 6f 6e 29 2e 47 75 69 |ator.Wea|pon).Gui|
|00000bd0| 64 65 64 53 68 65 6c 6c | 20 3d 20 73 65 6c 66 3b |dedShell| = self;|
|00000be0| 0d 0a 09 09 09 09 57 61 | 72 68 65 61 64 4c 61 75 |......Wa|rheadLau|
|00000bf0| 6e 63 68 65 72 28 49 6e | 73 74 69 67 61 74 6f 72 |ncher(In|stigator|
|00000c00| 2e 57 65 61 70 6f 6e 29 | 2e 62 47 75 69 64 69 6e |.Weapon)|.bGuidin|
|00000c10| 67 20 3d 20 74 72 75 65 | 3b 0d 0a 09 09 09 7d 0d |g = true|;.....}.|
|00000c20| 0a 09 09 7d 0d 0a 09 09 | 65 6c 73 65 0d 0a 09 09 |...}....|else....|
|00000c30| 7b 0d 0a 09 09 09 69 66 | 20 28 20 52 65 61 6c 4c |{.....if| ( RealL|
|00000c40| 6f 63 61 74 69 6f 6e 20 | 21 3d 20 76 65 63 74 28 |ocation |!= vect(|
|00000c50| 30 2c 30 2c 30 29 20 29 | 0d 0a 09 09 09 7b 0d 0a |0,0,0) )|.....{..|
|00000c60| 09 09 09 09 53 65 74 4c | 6f 63 61 74 69 6f 6e 28 |....SetL|ocation(|
|00000c70| 52 65 61 6c 4c 6f 63 61 | 74 69 6f 6e 29 3b 0d 0a |RealLoca|tion);..|
|00000c80| 09 09 09 09 52 65 61 6c | 4c 6f 63 61 74 69 6f 6e |....Real|Location|
|00000c90| 20 3d 20 76 65 63 74 28 | 30 2c 30 2c 30 29 3b 0d | = vect(|0,0,0);.|
|00000ca0| 0a 09 09 09 7d 0d 0a 09 | 09 09 69 66 20 28 20 52 |....}...|..if ( R|
|00000cb0| 65 61 6c 56 65 6c 6f 63 | 69 74 79 20 21 3d 20 76 |ealVeloc|ity != v|
|00000cc0| 65 63 74 28 30 2c 30 2c | 30 29 20 29 0d 0a 09 09 |ect(0,0,|0) )....|
|00000cd0| 09 7b 0d 0a 09 09 09 09 | 56 65 6c 6f 63 69 74 79 |.{......|Velocity|
|00000ce0| 20 3d 20 52 65 61 6c 56 | 65 6c 6f 63 69 74 79 3b | = RealV|elocity;|
|00000cf0| 0d 0a 09 09 09 09 53 65 | 74 52 6f 74 61 74 69 6f |......Se|tRotatio|
|00000d00| 6e 28 72 6f 74 61 74 6f | 72 28 56 65 6c 6f 63 69 |n(rotato|r(Veloci|
|00000d10| 74 79 29 29 3b 0d 0a 09 | 09 09 09 52 65 61 6c 56 |ty));...|...RealV|
|00000d20| 65 6c 6f 63 69 74 79 20 | 3d 20 76 65 63 74 28 30 |elocity |= vect(0|
|00000d30| 2c 30 2c 30 29 3b 0d 0a | 09 09 09 7d 0d 0a 09 09 |,0,0);..|...}....|
|00000d40| 09 72 65 74 75 72 6e 3b | 0d 0a 09 09 7d 0d 0a 09 |.return;|....}...|
|00000d50| 7d 0d 0a 09 65 6c 73 65 | 20 69 66 20 28 20 28 4c |}...else| if ( (L|
|00000d60| 65 76 65 6c 2e 4e 65 74 | 4d 6f 64 65 20 21 3d 20 |evel.Net|Mode != |
|00000d70| 4e 4d 5f 53 74 61 6e 64 | 61 6c 6f 6e 65 29 20 26 |NM_Stand|alone) &|
|00000d80| 26 20 28 52 65 6d 6f 74 | 65 52 6f 6c 65 20 3d 3d |& (Remot|eRole ==|
|00000d90| 20 52 4f 4c 45 5f 41 75 | 74 6f 6e 6f 6d 6f 75 73 | ROLE_Au|tonomous|
|00000da0| 50 72 6f 78 79 29 20 29 | 20 0d 0a 09 09 09 72 65 |Proxy) )| .....re|
|00000db0| 74 75 72 6e 3b 0d 0a 0d | 0a 09 2f 2f 20 69 66 20 |turn;...|..// if |
|00000dc0| 73 65 72 76 65 72 20 75 | 70 64 61 74 65 64 20 63 |server u|pdated c|
|00000dd0| 6c 69 65 6e 74 20 70 6f | 73 69 74 69 6f 6e 2c 20 |lient po|sition, |
|00000de0| 63 6c 69 65 6e 74 20 6e | 65 65 64 73 20 74 6f 20 |client n|eeds to |
|00000df0| 72 65 70 6c 61 79 20 6d | 6f 76 65 73 20 61 66 74 |replay m|oves aft|
|00000e00| 65 72 20 74 68 65 20 75 | 70 64 61 74 65 0d 0a 09 |er the u|pdate...|
|00000e10| 69 66 20 28 20 62 55 70 | 64 61 74 65 50 6f 73 69 |if ( bUp|datePosi|
|00000e20| 74 69 6f 6e 20 29 0d 0a | 09 09 43 6c 69 65 6e 74 |tion )..|..Client|
|00000e30| 55 70 64 61 74 65 50 6f | 73 69 74 69 6f 6e 28 29 |UpdatePo|sition()|
|00000e40| 3b 0d 0a 0d 0a 09 44 65 | 6c 74 61 59 61 77 20 3d |;.....De|ltaYaw =|
|00000e50| 20 28 47 75 69 64 65 72 | 2e 56 69 65 77 52 6f 74 | (Guider|.ViewRot|
|00000e60| 61 74 69 6f 6e 2e 59 61 | 77 20 26 20 36 35 35 33 |ation.Ya|w & 6553|
|00000e70| 35 29 20 2d 20 28 4f 6c | 64 47 75 69 64 65 72 52 |5) - (Ol|dGuiderR|
|00000e80| 6f 74 61 74 69 6f 6e 2e | 59 61 77 20 26 20 36 35 |otation.|Yaw & 65|
|00000e90| 35 33 35 29 3b 0d 0a 09 | 44 65 6c 74 61 50 69 74 |535);...|DeltaPit|
|00000ea0| 63 68 20 3d 20 28 47 75 | 69 64 65 72 2e 56 69 65 |ch = (Gu|ider.Vie|
|00000eb0| 77 52 6f 74 61 74 69 6f | 6e 2e 50 69 74 63 68 20 |wRotatio|n.Pitch |
|00000ec0| 26 20 36 35 35 33 35 29 | 20 2d 20 28 4f 6c 64 47 |& 65535)| - (OldG|
|00000ed0| 75 69 64 65 72 52 6f 74 | 61 74 69 6f 6e 2e 50 69 |uiderRot|ation.Pi|
|00000ee0| 74 63 68 20 26 20 36 35 | 35 33 35 29 3b 0d 0a 09 |tch & 65|535);...|
|00000ef0| 69 66 20 28 20 44 65 6c | 74 61 50 69 74 63 68 20 |if ( Del|taPitch |
|00000f00| 3c 20 2d 33 32 37 36 38 | 20 29 0d 0a 09 09 44 65 |< -32768| )....De|
|00000f10| 6c 74 61 50 69 74 63 68 | 20 2b 3d 20 36 35 35 33 |ltaPitch| += 6553|
|00000f20| 36 3b 0d 0a 09 65 6c 73 | 65 20 69 66 20 28 20 44 |6;...els|e if ( D|
|00000f30| 65 6c 74 61 50 69 74 63 | 68 20 3e 20 33 32 37 36 |eltaPitc|h > 3276|
|00000f40| 38 20 29 0d 0a 09 09 44 | 65 6c 74 61 50 69 74 63 |8 )....D|eltaPitc|
|00000f50| 68 20 2d 3d 20 36 35 35 | 33 36 3b 0d 0a 09 69 66 |h -= 655|36;...if|
|00000f60| 20 28 20 44 65 6c 74 61 | 59 61 77 20 3c 20 2d 33 | ( Delta|Yaw < -3|
|00000f70| 32 37 36 38 20 29 0d 0a | 09 09 44 65 6c 74 61 59 |2768 )..|..DeltaY|
|00000f80| 61 77 20 2b 3d 20 36 35 | 35 33 36 3b 0d 0a 09 65 |aw += 65|536;...e|
|00000f90| 6c 73 65 20 69 66 20 28 | 20 44 65 6c 74 61 59 61 |lse if (| DeltaYa|
|00000fa0| 77 20 3e 20 33 32 37 36 | 38 20 29 0d 0a 09 09 44 |w > 3276|8 )....D|
|00000fb0| 65 6c 74 61 59 61 77 20 | 2d 3d 20 36 35 35 33 36 |eltaYaw |-= 65536|
|00000fc0| 3b 0d 0a 0d 0a 09 59 61 | 77 44 69 66 66 20 3d 20 |;.....Ya|wDiff = |
|00000fd0| 28 52 6f 74 61 74 69 6f | 6e 2e 59 61 77 20 26 20 |(Rotatio|n.Yaw & |
|00000fe0| 36 35 35 33 35 29 20 2d | 20 28 47 75 69 64 65 64 |65535) -| (Guided|
|00000ff0| 52 6f 74 61 74 69 6f 6e | 2e 59 61 77 20 26 20 36 |Rotation|.Yaw & 6|
|00001000| 35 35 33 35 29 20 2d 20 | 44 65 6c 74 61 59 61 77 |5535) - |DeltaYaw|
|00001010| 3b 0d 0a 09 69 66 20 28 | 20 44 65 6c 74 61 59 61 |;...if (| DeltaYa|
|00001020| 77 20 3c 20 30 20 29 0d | 0a 09 7b 0d 0a 09 09 69 |w < 0 ).|..{....i|
|00001030| 66 20 28 20 28 28 59 61 | 77 44 69 66 66 20 3e 20 |f ( ((Ya|wDiff > |
|00001040| 30 29 20 26 26 20 28 59 | 61 77 44 69 66 66 20 3c |0) && (Y|awDiff <|
|00001050| 20 31 36 33 38 34 29 29 | 20 7c 7c 20 28 59 61 77 | 16384))| || (Yaw|
|00001060| 44 69 66 66 20 3c 20 2d | 34 39 31 35 32 29 20 29 |Diff < -|49152) )|
|00001070| 0d 0a 09 09 09 47 75 69 | 64 65 64 52 6f 74 61 74 |.....Gui|dedRotat|
|00001080| 69 6f 6e 2e 59 61 77 20 | 2b 3d 20 44 65 6c 74 61 |ion.Yaw |+= Delta|
|00001090| 59 61 77 3b 0d 0a 09 7d | 09 0d 0a 09 65 6c 73 65 |Yaw;...}|....else|
|000010a0| 20 69 66 20 28 20 28 28 | 59 61 77 44 69 66 66 20 | if ( ((|YawDiff |
|000010b0| 3c 20 30 29 20 26 26 20 | 28 59 61 77 44 69 66 66 |< 0) && |(YawDiff|
|000010c0| 20 3e 20 2d 31 36 33 38 | 34 29 29 20 7c 7c 20 28 | > -1638|4)) || (|
|000010d0| 59 61 77 44 69 66 66 20 | 3e 20 34 39 31 35 32 29 |YawDiff |> 49152)|
|000010e0| 20 29 0d 0a 09 09 47 75 | 69 64 65 64 52 6f 74 61 | )....Gu|idedRota|
|000010f0| 74 69 6f 6e 2e 59 61 77 | 20 2b 3d 20 44 65 6c 74 |tion.Yaw| += Delt|
|00001100| 61 59 61 77 3b 0d 0a 0d | 0a 09 47 75 69 64 65 64 |aYaw;...|..Guided|
|00001110| 52 6f 74 61 74 69 6f 6e | 2e 50 69 74 63 68 20 2b |Rotation|.Pitch +|
|00001120| 3d 20 44 65 6c 74 61 50 | 69 74 63 68 3b 0d 0a 09 |= DeltaP|itch;...|
|00001130| 4f 6c 64 47 75 69 64 65 | 72 52 6f 74 61 74 69 6f |OldGuide|rRotatio|
|00001140| 6e 20 3d 20 47 75 69 64 | 65 72 2e 56 69 65 77 52 |n = Guid|er.ViewR|
|00001150| 6f 74 61 74 69 6f 6e 3b | 0d 0a 09 69 66 20 28 20 |otation;|...if ( |
|00001160| 52 6f 6c 65 20 3d 3d 20 | 52 4f 4c 45 5f 41 75 74 |Role == |ROLE_Aut|
|00001170| 6f 6e 6f 6d 6f 75 73 50 | 72 6f 78 79 20 29 0d 0a |onomousP|roxy )..|
|00001180| 09 7b 0d 0a 09 09 2f 2f | 20 53 65 6e 64 20 74 68 |.{....//| Send th|
|00001190| 65 20 6d 6f 76 65 20 74 | 6f 20 74 68 65 20 73 65 |e move t|o the se|
|000011a0| 72 76 65 72 0d 0a 09 09 | 2f 2f 20 73 6b 69 70 20 |rver....|// skip |
|000011b0| 6d 6f 76 65 20 69 66 20 | 74 6f 6f 20 73 6f 6f 6e |move if |too soon|
|000011c0| 0d 0a 09 09 69 66 20 28 | 20 43 6c 69 65 6e 74 42 |....if (| ClientB|
|000011d0| 75 66 66 65 72 20 3c 20 | 30 20 29 0d 0a 09 09 7b |uffer < |0 )....{|
|000011e0| 0d 0a 09 09 09 43 6c 69 | 65 6e 74 42 75 66 66 65 |.....Cli|entBuffe|
|000011f0| 72 20 2b 3d 20 44 65 6c | 74 61 54 69 6d 65 3b 0d |r += Del|taTime;.|
|00001200| 0a 09 09 09 4d 6f 76 65 | 52 6f 63 6b 65 74 28 44 |....Move|Rocket(D|
|00001210| 65 6c 74 61 54 69 6d 65 | 2c 20 56 65 6c 6f 63 69 |eltaTime|, Veloci|
|00001220| 74 79 2c 20 47 75 69 64 | 65 64 52 6f 74 61 74 69 |ty, Guid|edRotati|
|00001230| 6f 6e 29 3b 0d 0a 09 09 | 09 72 65 74 75 72 6e 3b |on);....|.return;|
|00001240| 0d 0a 09 09 7d 0d 0a 09 | 09 65 6c 73 65 0d 0a 09 |....}...|.else...|
|00001250| 09 09 43 6c 69 65 6e 74 | 42 75 66 66 65 72 20 3d |..Client|Buffer =|
|00001260| 20 43 6c 69 65 6e 74 42 | 75 66 66 65 72 20 2b 20 | ClientB|uffer + |
|00001270| 44 65 6c 74 61 54 69 6d | 65 20 2d 20 38 30 2e 30 |DeltaTim|e - 80.0|
|00001280| 2f 50 6c 61 79 65 72 50 | 61 77 6e 28 49 6e 73 74 |/PlayerP|awn(Inst|
|00001290| 69 67 61 74 6f 72 29 2e | 50 6c 61 79 65 72 2e 43 |igator).|Player.C|
|000012a0| 75 72 72 65 6e 74 4e 65 | 74 53 70 65 65 64 3b 0d |urrentNe|tSpeed;.|
|000012b0| 0a 0d 0a 09 09 2f 2f 20 | 49 27 6d 20 20 61 20 63 |.....// |I'm a c|
|000012c0| 6c 69 65 6e 74 2c 20 73 | 6f 20 49 27 6c 6c 20 73 |lient, s|o I'll s|
|000012d0| 61 76 65 20 6d 79 20 6d | 6f 76 65 73 20 69 6e 20 |ave my m|oves in |
|000012e0| 63 61 73 65 20 49 20 6e | 65 65 64 20 74 6f 20 72 |case I n|eed to r|
|000012f0| 65 70 6c 61 79 20 74 68 | 65 6d 0d 0a 09 09 2f 2f |eplay th|em....//|
|00001300| 20 47 65 74 20 61 20 53 | 61 76 65 64 4d 6f 76 65 | Get a S|avedMove|
|00001310| 20 61 63 74 6f 72 20 74 | 6f 20 73 74 6f 72 65 20 | actor t|o store |
|00001320| 74 68 65 20 6d 6f 76 65 | 6d 65 6e 74 20 69 6e 2e |the move|ment in.|
|00001330| 0d 0a 09 09 69 66 20 28 | 20 53 61 76 65 64 4d 6f |....if (| SavedMo|
|00001340| 76 65 73 20 3d 3d 20 4e | 6f 6e 65 20 29 0d 0a 09 |ves == N|one )...|
|00001350| 09 7b 0d 0a 09 09 09 53 | 61 76 65 64 4d 6f 76 65 |.{.....S|avedMove|
|00001360| 73 20 3d 20 47 65 74 46 | 72 65 65 4d 6f 76 65 28 |s = GetF|reeMove(|
|00001370| 29 3b 0d 0a 09 09 09 4e | 65 77 4d 6f 76 65 20 3d |);.....N|ewMove =|
|00001380| 20 53 61 76 65 64 4d 6f | 76 65 73 3b 0d 0a 09 09 | SavedMo|ves;....|
|00001390| 7d 0d 0a 09 09 65 6c 73 | 65 0d 0a 09 09 7b 0d 0a |}....els|e....{..|
|000013a0| 09 09 09 4e 65 77 4d 6f | 76 65 20 3d 20 53 61 76 |...NewMo|ve = Sav|
|000013b0| 65 64 4d 6f 76 65 73 3b | 0d 0a 09 09 09 77 68 69 |edMoves;|.....whi|
|000013c0| 6c 65 20 28 20 4e 65 77 | 4d 6f 76 65 2e 4e 65 78 |le ( New|Move.Nex|
|000013d0| 74 4d 6f 76 65 20 21 3d | 20 4e 6f 6e 65 20 29 0d |tMove !=| None ).|
|000013e0| 0a 09 09 09 09 4e 65 77 | 4d 6f 76 65 20 3d 20 4e |.....New|Move = N|
|000013f0| 65 77 4d 6f 76 65 2e 4e | 65 78 74 4d 6f 76 65 3b |ewMove.N|extMove;|
|00001400| 0d 0a 09 09 09 4e 65 77 | 4d 6f 76 65 2e 4e 65 78 |.....New|Move.Nex|
|00001410| 74 4d 6f 76 65 20 3d 20 | 47 65 74 46 72 65 65 4d |tMove = |GetFreeM|
|00001420| 6f 76 65 28 29 3b 0d 0a | 09 09 09 4e 65 77 4d 6f |ove();..|...NewMo|
|00001430| 76 65 20 3d 20 4e 65 77 | 4d 6f 76 65 2e 4e 65 78 |ve = New|Move.Nex|
|00001440| 74 4d 6f 76 65 3b 0d 0a | 09 09 7d 0d 0a 0d 0a 09 |tMove;..|..}.....|
|00001450| 09 4e 65 77 4d 6f 76 65 | 2e 54 69 6d 65 53 74 61 |.NewMove|.TimeSta|
|00001460| 6d 70 20 3d 20 4c 65 76 | 65 6c 2e 54 69 6d 65 53 |mp = Lev|el.TimeS|
|00001470| 65 63 6f 6e 64 73 3b 0d | 0a 09 09 4e 65 77 4d 6f |econds;.|...NewMo|
|00001480| 76 65 2e 44 65 6c 74 61 | 20 3d 20 44 65 6c 74 61 |ve.Delta| = Delta|
|00001490| 54 69 6d 65 3b 0d 0a 09 | 09 4e 65 77 4d 6f 76 65 |Time;...|.NewMove|
|000014a0| 2e 56 65 6c 6f 63 69 74 | 79 20 3d 20 56 65 6c 6f |.Velocit|y = Velo|
|000014b0| 63 69 74 79 3b 0d 0a 09 | 09 4e 65 77 4d 6f 76 65 |city;...|.NewMove|
|000014c0| 2e 53 65 74 52 6f 74 61 | 74 69 6f 6e 28 47 75 69 |.SetRota|tion(Gui|
|000014d0| 64 65 64 52 6f 74 61 74 | 69 6f 6e 29 3b 0d 0a 0d |dedRotat|ion);...|
|000014e0| 0a 09 09 4d 6f 76 65 52 | 6f 63 6b 65 74 28 44 65 |...MoveR|ocket(De|
|000014f0| 6c 74 61 54 69 6d 65 2c | 20 56 65 6c 6f 63 69 74 |ltaTime,| Velocit|
|00001500| 79 2c 20 47 75 69 64 65 | 64 52 6f 74 61 74 69 6f |y, Guide|dRotatio|
|00001510| 6e 29 3b 0d 0a 09 09 53 | 65 72 76 65 72 4d 6f 76 |n);....S|erverMov|
|00001520| 65 28 4c 65 76 65 6c 2e | 54 69 6d 65 53 65 63 6f |e(Level.|TimeSeco|
|00001530| 6e 64 73 2c 20 4c 6f 63 | 61 74 69 6f 6e 2c 20 4e |nds, Loc|ation, N|
|00001540| 65 77 4d 6f 76 65 2e 52 | 6f 74 61 74 69 6f 6e 2e |ewMove.R|otation.|
|00001550| 50 69 74 63 68 2c 20 4e | 65 77 4d 6f 76 65 2e 52 |Pitch, N|ewMove.R|
|00001560| 6f 74 61 74 69 6f 6e 2e | 59 61 77 29 3b 0d 0a 09 |otation.|Yaw);...|
|00001570| 09 72 65 74 75 72 6e 3b | 0d 0a 09 7d 0d 0a 09 4d |.return;|...}...M|
|00001580| 6f 76 65 52 6f 63 6b 65 | 74 28 44 65 6c 74 61 54 |oveRocke|t(DeltaT|
|00001590| 69 6d 65 2c 20 56 65 6c | 6f 63 69 74 79 2c 20 47 |ime, Vel|ocity, G|
|000015a0| 75 69 64 65 64 52 6f 74 | 61 74 69 6f 6e 29 3b 0d |uidedRot|ation);.|
|000015b0| 0a 7d 0d 0a 0d 0a 2f 2f | 20 53 65 72 76 65 72 20 |.}....//| Server |
|000015c0| 73 65 6e 64 73 20 43 6c | 69 65 6e 74 41 64 6a 75 |sends Cl|ientAdju|
|000015d0| 73 74 50 6f 73 69 74 69 | 6f 6e 20 74 6f 20 74 68 |stPositi|on to th|
|000015e0| 65 20 63 6c 69 65 6e 74 | 20 74 6f 20 61 64 6a 75 |e client| to adju|
|000015f0| 73 74 20 74 68 65 20 77 | 61 72 68 65 61 64 20 70 |st the w|arhead p|
|00001600| 6f 73 69 74 69 6f 6e 20 | 6f 6e 20 74 68 65 20 63 |osition |on the c|
|00001610| 6c 69 65 6e 74 20 73 69 | 64 65 20 77 68 65 6e 20 |lient si|de when |
|00001620| 74 68 65 20 65 72 72 6f | 72 0d 0a 2f 2f 20 69 73 |the erro|r..// is|
|00001630| 20 65 78 63 65 73 73 69 | 76 65 0d 0a 73 69 6d 75 | excessi|ve..simu|
|00001640| 6c 61 74 65 64 20 66 75 | 6e 63 74 69 6f 6e 20 43 |lated fu|nction C|
|00001650| 6c 69 65 6e 74 41 64 6a | 75 73 74 50 6f 73 69 74 |lientAdj|ustPosit|
|00001660| 69 6f 6e 0d 0a 28 0d 0a | 09 66 6c 6f 61 74 20 54 |ion..(..|.float T|
|00001670| 69 6d 65 53 74 61 6d 70 | 2c 20 0d 0a 09 66 6c 6f |imeStamp|, ...flo|
|00001680| 61 74 20 4e 65 77 4c 6f | 63 58 2c 20 0d 0a 09 66 |at NewLo|cX, ...f|
|00001690| 6c 6f 61 74 20 4e 65 77 | 4c 6f 63 59 2c 20 0d 0a |loat New|LocY, ..|
|000016a0| 09 66 6c 6f 61 74 20 4e | 65 77 4c 6f 63 5a 2c 20 |.float N|ewLocZ, |
|000016b0| 0d 0a 09 66 6c 6f 61 74 | 20 4e 65 77 56 65 6c 58 |...float| NewVelX|
|000016c0| 2c 20 0d 0a 09 66 6c 6f | 61 74 20 4e 65 77 56 65 |, ...flo|at NewVe|
|000016d0| 6c 59 2c 20 0d 0a 09 66 | 6c 6f 61 74 20 4e 65 77 |lY, ...f|loat New|
|000016e0| 56 65 6c 5a 0d 0a 29 0d | 0a 7b 0d 0a 09 6c 6f 63 |VelZ..).|.{...loc|
|000016f0| 61 6c 20 76 65 63 74 6f | 72 20 4e 65 77 4c 6f 63 |al vecto|r NewLoc|
|00001700| 61 74 69 6f 6e 3b 0d 0a | 0d 0a 09 69 66 20 28 20 |ation;..|...if ( |
|00001710| 43 75 72 72 65 6e 74 54 | 69 6d 65 53 74 61 6d 70 |CurrentT|imeStamp|
|00001720| 20 3e 20 54 69 6d 65 53 | 74 61 6d 70 20 29 0d 0a | > TimeS|tamp )..|
|00001730| 09 09 72 65 74 75 72 6e | 3b 0d 0a 09 43 75 72 72 |..return|;...Curr|
|00001740| 65 6e 74 54 69 6d 65 53 | 74 61 6d 70 20 3d 20 54 |entTimeS|tamp = T|
|00001750| 69 6d 65 53 74 61 6d 70 | 3b 0d 0a 0d 0a 09 4e 65 |imeStamp|;.....Ne|
|00001760| 77 4c 6f 63 61 74 69 6f | 6e 2e 58 20 3d 20 4e 65 |wLocatio|n.X = Ne|
|00001770| 77 4c 6f 63 58 3b 0d 0a | 09 4e 65 77 4c 6f 63 61 |wLocX;..|.NewLoca|
|00001780| 74 69 6f 6e 2e 59 20 3d | 20 4e 65 77 4c 6f 63 59 |tion.Y =| NewLocY|
|00001790| 3b 0d 0a 09 4e 65 77 4c | 6f 63 61 74 69 6f 6e 2e |;...NewL|ocation.|
|000017a0| 5a 20 3d 20 4e 65 77 4c | 6f 63 5a 3b 0d 0a 09 56 |Z = NewL|ocZ;...V|
|000017b0| 65 6c 6f 63 69 74 79 2e | 58 20 3d 20 4e 65 77 56 |elocity.|X = NewV|
|000017c0| 65 6c 58 3b 0d 0a 09 56 | 65 6c 6f 63 69 74 79 2e |elX;...V|elocity.|
|000017d0| 59 20 3d 20 4e 65 77 56 | 65 6c 59 3b 0d 0a 09 56 |Y = NewV|elY;...V|
|000017e0| 65 6c 6f 63 69 74 79 2e | 5a 20 3d 20 4e 65 77 56 |elocity.|Z = NewV|
|000017f0| 65 6c 5a 3b 0d 0a 0d 0a | 09 53 65 74 4c 6f 63 61 |elZ;....|.SetLoca|
|00001800| 74 69 6f 6e 28 4e 65 77 | 4c 6f 63 61 74 69 6f 6e |tion(New|Location|
|00001810| 29 3b 0d 0a 0d 0a 09 62 | 55 70 64 61 74 65 50 6f |);.....b|UpdatePo|
|00001820| 73 69 74 69 6f 6e 20 3d | 20 74 72 75 65 3b 0d 0a |sition =| true;..|
|00001830| 7d 0d 0a 0d 0a 2f 2f 20 | 43 6c 69 65 6e 74 20 63 |}....// |Client c|
|00001840| 61 6c 6c 73 20 74 68 69 | 73 20 74 6f 20 72 65 70 |alls thi|s to rep|
|00001850| 6c 61 79 20 6d 6f 76 65 | 73 20 61 66 74 65 72 20 |lay move|s after |
|00001860| 67 65 74 74 69 6e 67 20 | 69 74 73 20 70 6f 73 69 |getting |its posi|
|00001870| 74 69 6f 6e 20 75 70 64 | 61 74 65 64 20 62 79 20 |tion upd|ated by |
|00001880| 74 68 65 20 73 65 72 76 | 65 72 0d 0a 73 69 6d 75 |the serv|er..simu|
|00001890| 6c 61 74 65 64 20 66 75 | 6e 63 74 69 6f 6e 20 43 |lated fu|nction C|
|000018a0| 6c 69 65 6e 74 55 70 64 | 61 74 65 50 6f 73 69 74 |lientUpd|atePosit|
|000018b0| 69 6f 6e 28 29 0d 0a 7b | 0d 0a 09 6c 6f 63 61 6c |ion()..{|...local|
|000018c0| 20 53 61 76 65 64 4d 6f | 76 65 20 43 75 72 72 65 | SavedMo|ve Curre|
|000018d0| 6e 74 4d 6f 76 65 3b 0d | 0a 09 6c 6f 63 61 6c 20 |ntMove;.|..local |
|000018e0| 69 6e 74 20 72 65 61 6c | 62 52 75 6e 2c 20 72 65 |int real|bRun, re|
|000018f0| 61 6c 62 44 75 63 6b 3b | 0d 0a 09 6c 6f 63 61 6c |albDuck;|...local|
|00001900| 20 62 6f 6f 6c 20 62 52 | 65 61 6c 4a 75 6d 70 3b | bool bR|ealJump;|
|00001910| 0d 0a 0d 0a 09 62 55 70 | 64 61 74 65 50 6f 73 69 |.....bUp|datePosi|
|00001920| 74 69 6f 6e 20 3d 20 66 | 61 6c 73 65 3b 0d 0a 09 |tion = f|alse;...|
|00001930| 43 75 72 72 65 6e 74 4d | 6f 76 65 20 3d 20 53 61 |CurrentM|ove = Sa|
|00001940| 76 65 64 4d 6f 76 65 73 | 3b 0d 0a 09 77 68 69 6c |vedMoves|;...whil|
|00001950| 65 20 28 20 43 75 72 72 | 65 6e 74 4d 6f 76 65 20 |e ( Curr|entMove |
|00001960| 21 3d 20 4e 6f 6e 65 20 | 29 0d 0a 09 7b 0d 0a 09 |!= None |)...{...|
|00001970| 09 69 66 20 28 20 43 75 | 72 72 65 6e 74 4d 6f 76 |.if ( Cu|rrentMov|
|00001980| 65 2e 54 69 6d 65 53 74 | 61 6d 70 20 3c 3d 20 43 |e.TimeSt|amp <= C|
|00001990| 75 72 72 65 6e 74 54 69 | 6d 65 53 74 61 6d 70 20 |urrentTi|meStamp |
|000019a0| 29 0d 0a 09 09 7b 0d 0a | 09 09 09 53 61 76 65 64 |)....{..|...Saved|
|000019b0| 4d 6f 76 65 73 20 3d 20 | 43 75 72 72 65 6e 74 4d |Moves = |CurrentM|
|000019c0| 6f 76 65 2e 4e 65 78 74 | 4d 6f 76 65 3b 0d 0a 09 |ove.Next|Move;...|
|000019d0| 09 09 43 75 72 72 65 6e | 74 4d 6f 76 65 2e 4e 65 |..Curren|tMove.Ne|
|000019e0| 78 74 4d 6f 76 65 20 3d | 20 46 72 65 65 4d 6f 76 |xtMove =| FreeMov|
|000019f0| 65 73 3b 0d 0a 09 09 09 | 46 72 65 65 4d 6f 76 65 |es;.....|FreeMove|
|00001a00| 73 20 3d 20 43 75 72 72 | 65 6e 74 4d 6f 76 65 3b |s = Curr|entMove;|
|00001a10| 0d 0a 09 09 09 46 72 65 | 65 4d 6f 76 65 73 2e 43 |.....Fre|eMoves.C|
|00001a20| 6c 65 61 72 28 29 3b 0d | 0a 09 09 09 43 75 72 72 |lear();.|....Curr|
|00001a30| 65 6e 74 4d 6f 76 65 20 | 3d 20 53 61 76 65 64 4d |entMove |= SavedM|
|00001a40| 6f 76 65 73 3b 0d 0a 09 | 09 7d 0d 0a 09 09 65 6c |oves;...|.}....el|
|00001a50| 73 65 0d 0a 09 09 7b 0d | 0a 09 09 09 4d 6f 76 65 |se....{.|....Move|
|00001a60| 52 6f 63 6b 65 74 28 43 | 75 72 72 65 6e 74 4d 6f |Rocket(C|urrentMo|
|00001a70| 76 65 2e 44 65 6c 74 61 | 2c 20 43 75 72 72 65 6e |ve.Delta|, Curren|
|00001a80| 74 4d 6f 76 65 2e 56 65 | 6c 6f 63 69 74 79 2c 20 |tMove.Ve|locity, |
|00001a90| 43 75 72 72 65 6e 74 4d | 6f 76 65 2e 52 6f 74 61 |CurrentM|ove.Rota|
|00001aa0| 74 69 6f 6e 29 3b 0d 0a | 09 09 09 43 75 72 72 65 |tion);..|...Curre|
|00001ab0| 6e 74 4d 6f 76 65 20 3d | 20 43 75 72 72 65 6e 74 |ntMove =| Current|
|00001ac0| 4d 6f 76 65 2e 4e 65 78 | 74 4d 6f 76 65 3b 0d 0a |Move.Nex|tMove;..|
|00001ad0| 09 09 7d 0d 0a 09 7d 0d | 0a 7d 0d 0a 09 0d 0a 2f |..}...}.|.}...../|
|00001ae0| 2f 20 73 65 72 76 65 72 | 20 6d 6f 76 65 73 20 74 |/ server| moves t|
|00001af0| 68 65 20 72 6f 63 6b 65 | 74 20 62 61 73 65 64 20 |he rocke|t based |
|00001b00| 6f 6e 20 63 6c 69 65 6e | 74 73 20 69 6e 70 75 74 |on clien|ts input|
|00001b10| 2c 20 61 6e 64 20 63 6f | 6d 70 61 72 65 73 20 74 |, and co|mpares t|
|00001b20| 68 65 20 72 65 73 75 6c | 74 61 6e 74 20 6c 6f 63 |he resul|tant loc|
|00001b30| 61 74 69 6f 6e 20 74 6f | 20 74 68 65 20 63 6c 69 |ation to| the cli|
|00001b40| 65 6e 74 27 73 20 76 69 | 65 77 20 6f 66 20 74 68 |ent's vi|ew of th|
|00001b50| 65 20 6c 6f 63 61 74 69 | 6f 6e 0d 0a 66 75 6e 63 |e locati|on..func|
|00001b60| 74 69 6f 6e 20 53 65 72 | 76 65 72 4d 6f 76 65 28 |tion Ser|verMove(|
|00001b70| 66 6c 6f 61 74 20 54 69 | 6d 65 53 74 61 6d 70 2c |float Ti|meStamp,|
|00001b80| 20 76 65 63 74 6f 72 20 | 43 6c 69 65 6e 74 4c 6f | vector |ClientLo|
|00001b90| 63 2c 20 69 6e 74 20 50 | 69 74 63 68 2c 20 69 6e |c, int P|itch, in|
|00001ba0| 74 20 59 61 77 29 0d 0a | 7b 0d 0a 09 6c 6f 63 61 |t Yaw)..|{...loca|
|00001bb0| 6c 20 66 6c 6f 61 74 20 | 43 6c 69 65 6e 74 45 72 |l float |ClientEr|
|00001bc0| 72 2c 20 44 65 6c 74 61 | 54 69 6d 65 3b 0d 0a 09 |r, Delta|Time;...|
|00001bd0| 6c 6f 63 61 6c 20 76 65 | 63 74 6f 72 20 4c 6f 63 |local ve|ctor Loc|
|00001be0| 44 69 66 66 3b 0d 0a 0d | 0a 09 69 66 20 28 20 43 |Diff;...|..if ( C|
|00001bf0| 75 72 72 65 6e 74 54 69 | 6d 65 53 74 61 6d 70 20 |urrentTi|meStamp |
|00001c00| 3e 3d 20 54 69 6d 65 53 | 74 61 6d 70 20 29 0d 0a |>= TimeS|tamp )..|
|00001c10| 09 09 72 65 74 75 72 6e | 3b 0d 0a 0d 0a 09 69 66 |..return|;.....if|
|00001c20| 20 28 20 43 75 72 72 65 | 6e 74 54 69 6d 65 53 74 | ( Curre|ntTimeSt|
|00001c30| 61 6d 70 20 3e 20 30 20 | 29 0d 0a 09 09 44 65 6c |amp > 0 |)....Del|
|00001c40| 74 61 54 69 6d 65 20 3d | 20 54 69 6d 65 53 74 61 |taTime =| TimeSta|
|00001c50| 6d 70 20 2d 20 43 75 72 | 72 65 6e 74 54 69 6d 65 |mp - Cur|rentTime|
|00001c60| 53 74 61 6d 70 3b 0d 0a | 09 43 75 72 72 65 6e 74 |Stamp;..|.Current|
|00001c70| 54 69 6d 65 53 74 61 6d | 70 20 3d 20 54 69 6d 65 |TimeStam|p = Time|
|00001c80| 53 74 61 6d 70 3b 0d 0a | 09 47 75 69 64 65 64 52 |Stamp;..|.GuidedR|
|00001c90| 6f 74 61 74 69 6f 6e 2e | 50 69 74 63 68 20 3d 20 |otation.|Pitch = |
|00001ca0| 50 69 74 63 68 3b 0d 0a | 09 47 75 69 64 65 64 52 |Pitch;..|.GuidedR|
|00001cb0| 6f 74 61 74 69 6f 6e 2e | 59 61 77 20 3d 20 59 61 |otation.|Yaw = Ya|
|00001cc0| 77 3b 0d 0a 09 69 66 20 | 28 20 44 65 6c 74 61 54 |w;...if |( DeltaT|
|00001cd0| 69 6d 65 20 3e 20 30 20 | 29 09 0d 0a 09 09 4d 6f |ime > 0 |).....Mo|
|00001ce0| 76 65 52 6f 63 6b 65 74 | 28 44 65 6c 74 61 54 69 |veRocket|(DeltaTi|
|00001cf0| 6d 65 2c 20 56 65 6c 6f | 63 69 74 79 2c 20 47 75 |me, Velo|city, Gu|
|00001d00| 69 64 65 64 52 6f 74 61 | 74 69 6f 6e 29 3b 0d 0a |idedRota|tion);..|
|00001d10| 09 69 66 20 28 20 4c 65 | 76 65 6c 2e 54 69 6d 65 |.if ( Le|vel.Time|
|00001d20| 53 65 63 6f 6e 64 73 20 | 2d 20 4c 61 73 74 55 70 |Seconds |- LastUp|
|00001d30| 64 61 74 65 54 69 6d 65 | 20 3e 20 30 2e 33 20 29 |dateTime| > 0.3 )|
|00001d40| 0d 0a 09 7b 0d 0a 09 09 | 43 6c 69 65 6e 74 45 72 |...{....|ClientEr|
|00001d50| 72 20 3d 20 31 30 30 30 | 30 3b 0d 0a 09 7d 0d 0a |r = 1000|0;...}..|
|00001d60| 09 65 6c 73 65 20 69 66 | 20 28 20 4c 65 76 65 6c |.else if| ( Level|
|00001d70| 2e 54 69 6d 65 53 65 63 | 6f 6e 64 73 20 2d 20 4c |.TimeSec|onds - L|
|00001d80| 61 73 74 55 70 64 61 74 | 65 54 69 6d 65 20 3e 20 |astUpdat|eTime > |
|00001d90| 30 2e 30 37 20 29 0d 0a | 09 7b 0d 0a 09 09 4c 6f |0.07 )..|.{....Lo|
|00001da0| 63 44 69 66 66 20 3d 20 | 4c 6f 63 61 74 69 6f 6e |cDiff = |Location|
|00001db0| 20 2d 20 43 6c 69 65 6e | 74 4c 6f 63 3b 0d 0a 09 | - Clien|tLoc;...|
|00001dc0| 09 43 6c 69 65 6e 74 45 | 72 72 20 3d 20 4c 6f 63 |.ClientE|rr = Loc|
|00001dd0| 44 69 66 66 20 44 6f 74 | 20 4c 6f 63 44 69 66 66 |Diff Dot| LocDiff|
|00001de0| 3b 0d 0a 09 7d 0d 0a 0d | 0a 09 2f 2f 20 49 66 20 |;...}...|..// If |
|00001df0| 63 6c 69 65 6e 74 20 68 | 61 73 20 61 63 63 75 6d |client h|as accum|
|00001e00| 75 6c 61 74 65 64 20 61 | 20 6e 6f 74 69 63 65 61 |ulated a| noticea|
|00001e10| 62 6c 65 20 70 6f 73 69 | 74 69 6f 6e 61 6c 20 65 |ble posi|tional e|
|00001e20| 72 72 6f 72 2c 20 63 6f | 72 72 65 63 74 20 68 69 |rror, co|rrect hi|
|00001e30| 6d 2e 0d 0a 09 69 66 20 | 28 20 43 6c 69 65 6e 74 |m....if |( Client|
|00001e40| 45 72 72 20 3e 20 33 20 | 29 0d 0a 09 7b 0d 0a 09 |Err > 3 |)...{...|
|00001e50| 09 4c 61 73 74 55 70 64 | 61 74 65 54 69 6d 65 20 |.LastUpd|ateTime |
|00001e60| 3d 20 4c 65 76 65 6c 2e | 54 69 6d 65 53 65 63 6f |= Level.|TimeSeco|
|00001e70| 6e 64 73 3b 0d 0a 09 09 | 43 6c 69 65 6e 74 41 64 |nds;....|ClientAd|
|00001e80| 6a 75 73 74 50 6f 73 69 | 74 69 6f 6e 28 54 69 6d |justPosi|tion(Tim|
|00001e90| 65 53 74 61 6d 70 2c 20 | 4c 6f 63 61 74 69 6f 6e |eStamp, |Location|
|00001ea0| 2e 58 2c 20 4c 6f 63 61 | 74 69 6f 6e 2e 59 2c 20 |.X, Loca|tion.Y, |
|00001eb0| 4c 6f 63 61 74 69 6f 6e | 2e 5a 2c 20 56 65 6c 6f |Location|.Z, Velo|
|00001ec0| 63 69 74 79 2e 58 2c 20 | 56 65 6c 6f 63 69 74 79 |city.X, |Velocity|
|00001ed0| 2e 59 2c 20 56 65 6c 6f | 63 69 74 79 2e 5a 29 3b |.Y, Velo|city.Z);|
|00001ee0| 0d 0a 09 7d 0d 0a 7d 0d | 0a 0d 0a 73 69 6d 75 6c |...}..}.|...simul|
|00001ef0| 61 74 65 64 20 66 75 6e | 63 74 69 6f 6e 20 4d 6f |ated fun|ction Mo|
|00001f00| 76 65 52 6f 63 6b 65 74 | 28 66 6c 6f 61 74 20 44 |veRocket|(float D|
|00001f10| 65 6c 74 61 54 69 6d 65 | 2c 20 76 65 63 74 6f 72 |eltaTime|, vector|
|00001f20| 20 43 75 72 72 65 6e 74 | 56 65 6c 6f 63 69 74 79 | Current|Velocity|
|00001f30| 2c 20 72 6f 74 61 74 6f | 72 20 47 75 69 64 65 52 |, rotato|r GuideR|
|00001f40| 6f 74 61 74 69 6f 6e 20 | 29 0d 0a 7b 0d 0a 09 6c |otation |)..{...l|
|00001f50| 6f 63 61 6c 20 69 6e 74 | 20 4f 6c 64 52 6f 6c 6c |ocal int| OldRoll|
|00001f60| 2c 20 52 6f 6c 6c 4d 61 | 67 3b 0d 0a 09 6c 6f 63 |, RollMa|g;...loc|
|00001f70| 61 6c 20 72 6f 74 61 74 | 6f 72 20 4e 65 77 52 6f |al rotat|or NewRo|
|00001f80| 74 3b 0d 0a 09 6c 6f 63 | 61 6c 20 66 6c 6f 61 74 |t;...loc|al float|
|00001f90| 20 53 6d 6f 6f 74 68 52 | 6f 6c 6c 3b 0d 0a 09 6c | SmoothR|oll;...l|
|00001fa0| 6f 63 61 6c 20 76 65 63 | 74 6f 72 20 4f 6c 64 56 |ocal vec|tor OldV|
|00001fb0| 65 6c 6f 63 69 74 79 2c | 20 58 2c 59 2c 5a 3b 0d |elocity,| X,Y,Z;.|
|00001fc0| 0a 0d 0a 09 69 66 20 28 | 20 28 52 6f 6c 65 20 3d |....if (| (Role =|
|00001fd0| 3d 20 52 4f 4c 45 5f 41 | 75 74 68 6f 72 69 74 79 |= ROLE_A|uthority|
|00001fe0| 29 20 26 26 20 28 20 28 | 47 75 69 64 65 72 20 3d |) && ( (|Guider =|
|00001ff0| 3d 20 4e 6f 6e 65 29 20 | 7c 7c 20 28 47 75 69 64 |= None) ||| (Guid|
|00002000| 65 72 2e 48 65 61 6c 74 | 68 20 3c 3d 20 30 29 0d |er.Healt|h <= 0).|
|00002010| 0a 09 09 09 09 7c 7c 20 | 28 47 75 69 64 65 72 2e |.....|| |(Guider.|
|00002020| 49 73 41 28 27 50 6c 61 | 79 65 72 50 61 77 6e 27 |IsA('Pla|yerPawn'|
|00002030| 29 20 26 26 20 28 50 6c | 61 79 65 72 50 61 77 6e |) && (Pl|ayerPawn|
|00002040| 28 47 75 69 64 65 72 29 | 2e 56 69 65 77 54 61 72 |(Guider)|.ViewTar|
|00002050| 67 65 74 20 21 3d 20 73 | 65 6c 66 29 29 20 7c 7c |get != s|elf)) |||
|00002060| 20 47 75 69 64 65 72 2e | 49 73 49 6e 53 74 61 74 | Guider.|IsInStat|
|00002070| 65 28 27 46 65 69 67 6e | 69 6e 67 44 65 61 74 68 |e('Feign|ingDeath|
|00002080| 27 29 29 20 29 0d 0a 09 | 7b 0d 0a 09 09 45 78 70 |')) )...|{....Exp|
|00002090| 6c 6f 64 65 28 4c 6f 63 | 61 74 69 6f 6e 2c 56 65 |lode(Loc|ation,Ve|
|000020a0| 63 74 28 30 2c 30 2c 31 | 29 29 3b 0d 0a 09 09 72 |ct(0,0,1|));....r|
|000020b0| 65 74 75 72 6e 3b 0d 0a | 09 7d 0d 0a 0d 0a 09 53 |eturn;..|.}.....S|
|000020c0| 65 72 76 65 72 55 70 64 | 61 74 65 20 3d 20 4c 65 |erverUpd|ate = Le|
|000020d0| 76 65 6c 2e 54 69 6d 65 | 53 65 63 6f 6e 64 73 3b |vel.Time|Seconds;|
|000020e0| 0d 0a 09 4f 6c 64 52 6f | 6c 6c 20 3d 20 52 6f 74 |...OldRo|ll = Rot|
|000020f0| 61 74 69 6f 6e 2e 52 6f | 6c 6c 20 26 20 36 35 35 |ation.Ro|ll & 655|
|00002100| 33 35 3b 0d 0a 09 4f 6c | 64 56 65 6c 6f 63 69 74 |35;...Ol|dVelocit|
|00002110| 79 20 3d 20 43 75 72 72 | 65 6e 74 56 65 6c 6f 63 |y = Curr|entVeloc|
|00002120| 69 74 79 3b 0d 0a 09 56 | 65 6c 6f 63 69 74 79 20 |ity;...V|elocity |
|00002130| 3d 20 43 75 72 72 65 6e | 74 56 65 6c 6f 63 69 74 |= Curren|tVelocit|
|00002140| 79 20 2b 20 56 65 63 74 | 6f 72 28 47 75 69 64 65 |y + Vect|or(Guide|
|00002150| 52 6f 74 61 74 69 6f 6e | 29 20 2a 20 31 35 30 30 |Rotation|) * 1500|
|00002160| 20 2a 20 44 65 6c 74 61 | 54 69 6d 65 3b 0d 0a 09 | * Delta|Time;...|
|00002170| 56 65 6c 6f 63 69 74 79 | 20 3d 20 4e 6f 72 6d 61 |Velocity| = Norma|
|00002180| 6c 28 56 65 6c 6f 63 69 | 74 79 29 20 2a 20 35 35 |l(Veloci|ty) * 55|
|00002190| 30 3b 0d 0a 09 4e 65 77 | 52 6f 74 20 3d 20 52 6f |0;...New|Rot = Ro|
|000021a0| 74 61 74 6f 72 28 56 65 | 6c 6f 63 69 74 79 29 3b |tator(Ve|locity);|
|000021b0| 0d 0a 0d 0a 09 2f 2f 20 | 52 6f 6c 6c 20 57 61 72 |.....// |Roll War|
|000021c0| 68 65 61 64 20 62 61 73 | 65 64 20 6f 6e 20 61 63 |head bas|ed on ac|
|000021d0| 63 65 6c 65 72 61 74 69 | 6f 6e 0d 0a 09 47 65 74 |celerati|on...Get|
|000021e0| 41 78 65 73 28 4e 65 77 | 52 6f 74 2c 20 58 2c 59 |Axes(New|Rot, X,Y|
|000021f0| 2c 5a 29 3b 0d 0a 09 52 | 6f 6c 6c 4d 61 67 20 3d |,Z);...R|ollMag =|
|00002200| 20 69 6e 74 28 31 30 20 | 2a 20 28 59 20 44 6f 74 | int(10 |* (Y Dot|
|00002210| 20 28 56 65 6c 6f 63 69 | 74 79 20 2d 20 4f 6c 64 | (Veloci|ty - Old|
|00002220| 56 65 6c 6f 63 69 74 79 | 29 29 2f 44 65 6c 74 61 |Velocity|))/Delta|
|00002230| 54 69 6d 65 29 3b 0d 0a | 09 69 66 20 28 20 52 6f |Time);..|.if ( Ro|
|00002240| 6c 6c 4d 61 67 20 3e 20 | 30 20 29 20 0d 0a 09 09 |llMag > |0 ) ....|
|00002250| 4e 65 77 52 6f 74 2e 52 | 6f 6c 6c 20 3d 20 4d 69 |NewRot.R|oll = Mi|
|00002260| 6e 28 31 32 30 30 30 2c | 20 52 6f 6c 6c 4d 61 67 |n(12000,| RollMag|
|00002270| 29 3b 20 0d 0a 09 65 6c | 73 65 0d 0a 09 09 4e 65 |); ...el|se....Ne|
|00002280| 77 52 6f 74 2e 52 6f 6c | 6c 20 3d 20 4d 61 78 28 |wRot.Rol|l = Max(|
|00002290| 35 33 35 33 35 2c 20 36 | 35 35 33 36 20 2b 20 52 |53535, 6|5536 + R|
|000022a0| 6f 6c 6c 4d 61 67 29 3b | 0d 0a 0d 0a 09 2f 2f 73 |ollMag);|.....//s|
|000022b0| 6d 6f 6f 74 68 6c 79 20 | 63 68 61 6e 67 65 20 72 |moothly |change r|
|000022c0| 6f 74 61 74 69 6f 6e 0d | 0a 09 69 66 20 28 4e 65 |otation.|..if (Ne|
|000022d0| 77 52 6f 74 2e 52 6f 6c | 6c 20 3e 20 33 32 37 36 |wRot.Rol|l > 3276|
|000022e0| 38 29 0d 0a 09 7b 0d 0a | 09 09 69 66 20 28 4f 6c |8)...{..|..if (Ol|
|000022f0| 64 52 6f 6c 6c 20 3c 20 | 33 32 37 36 38 29 0d 0a |dRoll < |32768)..|
|00002300| 09 09 09 4f 6c 64 52 6f | 6c 6c 20 2b 3d 20 36 35 |...OldRo|ll += 65|
|00002310| 35 33 36 3b 0d 0a 09 7d | 0d 0a 09 65 6c 73 65 20 |536;...}|...else |
|00002320| 69 66 20 28 4f 6c 64 52 | 6f 6c 6c 20 3e 20 33 32 |if (OldR|oll > 32|
|00002330| 37 36 38 29 0d 0a 09 09 | 4f 6c 64 52 6f 6c 6c 20 |768)....|OldRoll |
|00002340| 2d 3d 20 36 35 35 33 36 | 3b 0d 0a 0d 0a 09 53 6d |-= 65536|;.....Sm|
|00002350| 6f 6f 74 68 52 6f 6c 6c | 20 3d 20 46 4d 69 6e 28 |oothRoll| = FMin(|
|00002360| 31 2e 30 2c 20 35 2e 30 | 20 2a 20 64 65 6c 74 61 |1.0, 5.0| * delta|
|00002370| 54 69 6d 65 29 3b 0d 0a | 09 4e 65 77 52 6f 74 2e |Time);..|.NewRot.|
|00002380| 52 6f 6c 6c 20 3d 20 4e | 65 77 52 6f 74 2e 52 6f |Roll = N|ewRot.Ro|
|00002390| 6c 6c 20 2a 20 53 6d 6f | 6f 74 68 52 6f 6c 6c 20 |ll * Smo|othRoll |
|000023a0| 2b 20 4f 6c 64 52 6f 6c | 6c 20 2a 20 28 31 20 2d |+ OldRol|l * (1 -|
|000023b0| 20 53 6d 6f 6f 74 68 52 | 6f 6c 6c 29 3b 0d 0a 09 | SmoothR|oll);...|
|000023c0| 53 65 74 52 6f 74 61 74 | 69 6f 6e 28 4e 65 77 52 |SetRotat|ion(NewR|
|000023d0| 6f 74 29 3b 0d 0a 0d 0a | 09 69 66 20 28 20 28 4c |ot);....|.if ( (L|
|000023e0| 65 76 65 6c 2e 4e 65 74 | 4d 6f 64 65 20 21 3d 20 |evel.Net|Mode != |
|000023f0| 4e 4d 5f 53 74 61 6e 64 | 61 6c 6f 6e 65 29 0d 0a |NM_Stand|alone)..|
|00002400| 09 09 26 26 20 28 28 4c | 65 76 65 6c 2e 4e 65 74 |..&& ((L|evel.Net|
|00002410| 4d 6f 64 65 20 21 3d 20 | 4e 4d 5f 4c 69 73 74 65 |Mode != |NM_Liste|
|00002420| 6e 53 65 72 76 65 72 29 | 20 7c 7c 20 28 49 6e 73 |nServer)| || (Ins|
|00002430| 74 69 67 61 74 6f 72 20 | 3d 3d 20 4e 6f 6e 65 29 |tigator |== None)|
|00002440| 20 0d 0a 09 09 09 7c 7c | 20 28 49 6e 73 74 69 67 | .....||| (Instig|
|00002450| 61 74 6f 72 2e 49 73 41 | 28 27 50 6c 61 79 65 72 |ator.IsA|('Player|
|00002460| 50 61 77 6e 27 29 20 26 | 26 20 28 50 6c 61 79 65 |Pawn') &|& (Playe|
|00002470| 72 50 61 77 6e 28 49 6e | 73 74 69 67 61 74 6f 72 |rPawn(In|stigator|
|00002480| 29 2e 50 6c 61 79 65 72 | 20 21 3d 20 4e 6f 6e 65 |).Player| != None|
|00002490| 29 0d 0a 09 09 09 09 26 | 26 20 28 56 69 65 77 50 |)......&|& (ViewP|
|000024a0| 6f 72 74 28 50 6c 61 79 | 65 72 50 61 77 6e 28 49 |ort(Play|erPawn(I|
|000024b0| 6e 73 74 69 67 61 74 6f | 72 29 2e 50 6c 61 79 65 |nstigato|r).Playe|
|000024c0| 72 29 20 3d 3d 20 4e 6f | 6e 65 29 29 29 20 29 0d |r) == No|ne))) ).|
|000024d0| 0a 09 09 41 75 74 6f 6e | 6f 6d 6f 75 73 50 68 79 |...Auton|omousPhy|
|000024e0| 73 69 63 73 28 44 65 6c | 74 61 54 69 6d 65 29 3b |sics(Del|taTime);|
|000024f0| 0d 0a 0d 0a 09 69 66 20 | 28 20 52 6f 6c 65 20 3d |.....if |( Role =|
|00002500| 3d 20 52 4f 4c 45 5f 41 | 75 74 68 6f 72 69 74 79 |= ROLE_A|uthority|
|00002510| 20 29 0d 0a 09 7b 0d 0a | 09 09 52 65 61 6c 4c 6f | )...{..|..RealLo|
|00002520| 63 61 74 69 6f 6e 20 3d | 20 4c 6f 63 61 74 69 6f |cation =| Locatio|
|00002530| 6e 3b 0d 0a 09 09 52 65 | 61 6c 56 65 6c 6f 63 69 |n;....Re|alVeloci|
|00002540| 74 79 20 3d 20 56 65 6c | 6f 63 69 74 79 3b 0d 0a |ty = Vel|ocity;..|
|00002550| 09 7d 0d 0a 7d 0d 0a 0d | 0a 73 69 6d 75 6c 61 74 |.}..}...|.simulat|
|00002560| 65 64 20 66 75 6e 63 74 | 69 6f 6e 20 50 6f 73 74 |ed funct|ion Post|
|00002570| 52 65 6e 64 65 72 28 20 | 63 61 6e 76 61 73 20 43 |Render( |canvas C|
|00002580| 61 6e 76 61 73 20 29 0d | 0a 7b 0d 0a 09 6c 6f 63 |anvas ).|.{...loc|
|00002590| 61 6c 20 66 6c 6f 61 74 | 20 44 69 73 74 3b 0d 0a |al float| Dist;..|
|000025a0| 09 6c 6f 63 61 6c 20 50 | 61 77 6e 20 50 3b 0d 0a |.local P|awn P;..|
|000025b0| 09 6c 6f 63 61 6c 20 69 | 6e 74 20 58 50 6f 73 2c |.local i|nt XPos,|
|000025c0| 20 59 50 6f 73 3b 0d 0a | 09 6c 6f 63 61 6c 20 56 | YPos;..|.local V|
|000025d0| 65 63 74 6f 72 20 58 2c | 59 2c 5a 2c 20 44 69 72 |ector X,|Y,Z, Dir|
|000025e0| 3b 0d 0a 0d 0a 09 47 65 | 74 41 78 65 73 28 52 6f |;.....Ge|tAxes(Ro|
|000025f0| 74 61 74 69 6f 6e 2c 20 | 58 2c 59 2c 5a 29 3b 0d |tation, |X,Y,Z);.|
|00002600| 0a 09 43 61 6e 76 61 73 | 2e 46 6f 6e 74 20 3d 20 |..Canvas|.Font = |
|00002610| 46 6f 6e 74 27 54 69 6e | 79 52 65 64 46 6f 6e 74 |Font'Tin|yRedFont|
|00002620| 27 3b 0d 0a 09 69 66 20 | 28 20 4c 65 76 65 6c 2e |';...if |( Level.|
|00002630| 62 48 69 67 68 44 65 74 | 61 69 6c 4d 6f 64 65 20 |bHighDet|ailMode |
|00002640| 29 0d 0a 09 09 43 61 6e | 76 61 73 2e 53 74 79 6c |)....Can|vas.Styl|
|00002650| 65 20 3d 20 45 52 65 6e | 64 65 72 53 74 79 6c 65 |e = ERen|derStyle|
|00002660| 2e 53 54 59 5f 54 72 61 | 6e 73 6c 75 63 65 6e 74 |.STY_Tra|nslucent|
|00002670| 3b 0d 0a 09 65 6c 73 65 | 0d 0a 09 09 43 61 6e 76 |;...else|....Canv|
|00002680| 61 73 2e 53 74 79 6c 65 | 20 3d 20 45 52 65 6e 64 |as.Style| = ERend|
|00002690| 65 72 53 74 79 6c 65 2e | 53 54 59 5f 4e 6f 72 6d |erStyle.|STY_Norm|
|000026a0| 61 6c 3b 0d 0a 09 66 6f | 72 65 61 63 68 20 76 69 |al;...fo|reach vi|
|000026b0| 73 69 62 6c 65 63 6f 6c | 6c 69 64 69 6e 67 61 63 |siblecol|lidingac|
|000026c0| 74 6f 72 73 28 63 6c 61 | 73 73 27 50 61 77 6e 27 |tors(cla|ss'Pawn'|
|000026d0| 2c 20 50 2c 20 32 30 30 | 30 2c 2c 20 74 72 75 65 |, P, 200|0,, true|
|000026e0| 29 0d 0a 09 7b 0d 0a 09 | 09 44 69 72 20 3d 20 50 |)...{...|.Dir = P|
|000026f0| 2e 4c 6f 63 61 74 69 6f | 6e 20 2d 20 4c 6f 63 61 |.Locatio|n - Loca|
|00002700| 74 69 6f 6e 3b 0d 0a 09 | 09 44 69 73 74 20 3d 20 |tion;...|.Dist = |
|00002710| 56 53 69 7a 65 28 44 69 | 72 29 3b 0d 0a 09 09 44 |VSize(Di|r);....D|
|00002720| 69 72 20 3d 20 44 69 72 | 2f 44 69 73 74 3b 0d 0a |ir = Dir|/Dist;..|
|00002730| 09 09 69 66 20 28 20 28 | 44 69 72 20 44 6f 74 20 |..if ( (|Dir Dot |
|00002740| 58 29 20 3e 20 30 2e 37 | 20 29 0d 0a 09 09 7b 0d |X) > 0.7| )....{.|
|00002750| 0a 09 09 09 58 50 6f 73 | 20 3d 20 30 2e 35 20 2a |....XPos| = 0.5 *|
|00002760| 20 43 61 6e 76 61 73 2e | 43 6c 69 70 58 20 2a 20 | Canvas.|ClipX * |
|00002770| 28 31 20 2b 20 31 2e 34 | 20 2a 20 28 44 69 72 20 |(1 + 1.4| * (Dir |
|00002780| 44 6f 74 20 59 29 29 3b | 0d 0a 09 09 09 59 50 6f |Dot Y));|.....YPo|
|00002790| 73 20 3d 20 30 2e 35 20 | 2a 20 43 61 6e 76 61 73 |s = 0.5 |* Canvas|
|000027a0| 2e 43 6c 69 70 59 20 2a | 20 28 31 20 2d 20 31 2e |.ClipY *| (1 - 1.|
|000027b0| 34 20 2a 20 28 44 69 72 | 20 44 6f 74 20 5a 29 29 |4 * (Dir| Dot Z))|
|000027c0| 3b 0d 0a 09 09 09 43 61 | 6e 76 61 73 2e 53 65 74 |;.....Ca|nvas.Set|
|000027d0| 50 6f 73 28 58 50 6f 73 | 20 2d 20 38 2c 20 59 50 |Pos(XPos| - 8, YP|
|000027e0| 6f 73 20 2d 20 38 29 3b | 0d 0a 09 09 09 43 61 6e |os - 8);|.....Can|
|000027f0| 76 61 73 2e 44 72 61 77 | 49 63 6f 6e 28 74 65 78 |vas.Draw|Icon(tex|
|00002800| 74 75 72 65 27 43 72 6f | 73 73 48 61 69 72 36 27 |ture'Cro|ssHair6'|
|00002810| 2c 20 31 2e 30 29 3b 0d | 0a 09 09 09 43 61 6e 76 |, 1.0);.|....Canv|
|00002820| 61 73 2e 53 65 74 50 6f | 73 28 58 70 6f 73 20 2d |as.SetPo|s(Xpos -|
|00002830| 20 31 32 2c 20 59 50 6f | 73 20 2b 20 38 29 3b 0d | 12, YPo|s + 8);.|
|00002840| 0a 09 09 09 43 61 6e 76 | 61 73 2e 44 72 61 77 54 |....Canv|as.DrawT|
|00002850| 65 78 74 28 44 69 73 74 | 2c 20 74 72 75 65 29 3b |ext(Dist|, true);|
|00002860| 0d 0a 09 09 7d 0d 0a 09 | 7d 09 0d 0a 7d 09 09 0d |....}...|}...}...|
|00002870| 0a 0d 0a 73 69 6d 75 6c | 61 74 65 64 20 66 75 6e |...simul|ated fun|
|00002880| 63 74 69 6f 6e 20 53 61 | 76 65 64 4d 6f 76 65 20 |ction Sa|vedMove |
|00002890| 47 65 74 46 72 65 65 4d | 6f 76 65 28 29 0d 0a 7b |GetFreeM|ove()..{|
|000028a0| 0d 0a 09 6c 6f 63 61 6c | 20 53 61 76 65 64 4d 6f |...local| SavedMo|
|000028b0| 76 65 20 73 3b 0d 0a 0d | 0a 09 69 66 20 28 20 46 |ve s;...|..if ( F|
|000028c0| 72 65 65 4d 6f 76 65 73 | 20 3d 3d 20 4e 6f 6e 65 |reeMoves| == None|
|000028d0| 20 29 0d 0a 09 09 72 65 | 74 75 72 6e 20 53 70 61 | )....re|turn Spa|
|000028e0| 77 6e 28 63 6c 61 73 73 | 27 53 61 76 65 64 4d 6f |wn(class|'SavedMo|
|000028f0| 76 65 27 29 3b 0d 0a 09 | 65 6c 73 65 0d 0a 09 7b |ve');...|else...{|
|00002900| 0d 0a 09 09 73 20 3d 20 | 46 72 65 65 4d 6f 76 65 |....s = |FreeMove|
|00002910| 73 3b 0d 0a 09 09 46 72 | 65 65 4d 6f 76 65 73 20 |s;....Fr|eeMoves |
|00002920| 3d 20 46 72 65 65 4d 6f | 76 65 73 2e 4e 65 78 74 |= FreeMo|ves.Next|
|00002930| 4d 6f 76 65 3b 0d 0a 09 | 09 73 2e 4e 65 78 74 4d |Move;...|.s.NextM|
|00002940| 6f 76 65 20 3d 20 4e 6f | 6e 65 3b 0d 0a 09 09 72 |ove = No|ne;....r|
|00002950| 65 74 75 72 6e 20 73 3b | 0d 0a 09 7d 09 0d 0a 7d |eturn s;|...}...}|
|00002960| 0d 0a 0d 0a 61 75 74 6f | 20 73 74 61 74 65 20 46 |....auto| state F|
|00002970| 6c 79 69 6e 67 0d 0a 7b | 0d 0a 09 66 75 6e 63 74 |lying..{|...funct|
|00002980| 69 6f 6e 20 42 65 67 69 | 6e 53 74 61 74 65 28 29 |ion Begi|nState()|
|00002990| 0d 0a 09 7b 0d 0a 09 09 | 47 75 69 64 65 64 52 6f |...{....|GuidedRo|
|000029a0| 74 61 74 69 6f 6e 20 3d | 20 52 6f 74 61 74 69 6f |tation =| Rotatio|
|000029b0| 6e 3b 0d 0a 09 09 4f 6c | 64 47 75 69 64 65 72 52 |n;....Ol|dGuiderR|
|000029c0| 6f 74 61 74 69 6f 6e 20 | 3d 20 52 6f 74 61 74 69 |otation |= Rotati|
|000029d0| 6f 6e 3b 0d 0a 09 09 56 | 65 6c 6f 63 69 74 79 20 |on;....V|elocity |
|000029e0| 3d 20 73 70 65 65 64 2a | 76 65 63 74 6f 72 28 52 |= speed*|vector(R|
|000029f0| 6f 74 61 74 69 6f 6e 29 | 3b 0d 0a 09 09 41 63 63 |otation)|;....Acc|
|00002a00| 65 6c 65 72 61 74 69 6f | 6e 20 3d 20 76 65 63 74 |eleratio|n = vect|
|00002a10| 28 30 2c 30 2c 30 29 3b | 0d 0a 09 09 69 66 20 28 |(0,0,0);|....if (|
|00002a20| 20 28 4c 65 76 65 6c 2e | 4e 65 74 4d 6f 64 65 20 | (Level.|NetMode |
|00002a30| 21 3d 20 4e 4d 5f 53 74 | 61 6e 64 61 6c 6f 6e 65 |!= NM_St|andalone|
|00002a40| 29 20 26 26 20 28 52 6f | 6c 65 20 3d 3d 20 52 4f |) && (Ro|le == RO|
|00002a50| 4c 45 5f 41 75 74 68 6f | 72 69 74 79 29 20 29 0d |LE_Autho|rity) ).|
|00002a60| 0a 09 09 7b 0d 0a 09 09 | 09 69 66 20 28 20 28 50 |...{....|.if ( (P|
|00002a70| 6c 61 79 65 72 50 61 77 | 6e 28 49 6e 73 74 69 67 |layerPaw|n(Instig|
|00002a80| 61 74 6f 72 29 20 21 3d | 20 4e 6f 6e 65 29 20 0d |ator) !=| None) .|
|00002a90| 0a 09 09 09 09 26 26 20 | 28 56 69 65 77 50 6f 72 |.....&& |(ViewPor|
|00002aa0| 74 28 50 6c 61 79 65 72 | 50 61 77 6e 28 49 6e 73 |t(Player|Pawn(Ins|
|00002ab0| 74 69 67 61 74 6f 72 29 | 2e 50 6c 61 79 65 72 29 |tigator)|.Player)|
|00002ac0| 20 21 3d 20 4e 6f 6e 65 | 29 20 29 0d 0a 09 09 09 | != None|) ).....|
|00002ad0| 09 52 65 6d 6f 74 65 52 | 6f 6c 65 20 3d 20 52 4f |.RemoteR|ole = RO|
|00002ae0| 4c 45 5f 53 69 6d 75 6c | 61 74 65 64 50 72 6f 78 |LE_Simul|atedProx|
|00002af0| 79 3b 0d 0a 09 09 09 65 | 6c 73 65 0d 0a 09 09 09 |y;.....e|lse.....|
|00002b00| 09 52 65 6d 6f 74 65 52 | 6f 6c 65 20 3d 20 52 4f |.RemoteR|ole = RO|
|00002b10| 4c 45 5f 41 75 74 6f 6e | 6f 6d 6f 75 73 50 72 6f |LE_Auton|omousPro|
|00002b20| 78 79 3b 0d 0a 09 09 7d | 0d 0a 09 7d 0d 0a 7d 0d |xy;....}|...}..}.|
|00002b30| 0a 0d 0a 00 | |.... | |
+--------+-------------------------+-------------------------+--------+--------+